package com.qf.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.qf.entity.Stock;
import org.apache.ibatis.annotations.Param;

public interface StockMapper extends BaseMapper<Stock> {
    int lockGoodsStock(@Param("gid") Integer gid, @Param("wid") Integer wid, @Param("sum") Integer sum);

    void unlockGoodsStock(@Param("gid") Integer gid, @Param("wid") Integer wid, @Param("sum") Integer sum);


}
